var grXX = '';
function update(){
  var textarea = document.grZZ.zzGR;
  var grYY = parent.previewGR.document; 
  if (grXX != textarea.value){
    grXX = textarea.value;
    grYY.open();
    grYY.write(grXX);
    grYY.close();
  }
  window.setTimeout(update, 300);
}
function ngloding () {
    document.getElementById('code');
    update();
}
    window.setTimeout(ngloding, 500);
